Optimal. Leaf size=183 \[ \frac {d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac {3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac {b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac {b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 183, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {4469, 4433} \[ \frac {d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac {3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac {b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac {b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4433
Rule 4469
Rubi steps
\begin {align*} \int e^{a+b x} \cos ^3(c+d x) \sin ^2(c+d x) \, dx &=\int \left (\frac {1}{8} e^{a+b x} \cos (c+d x)-\frac {1}{16} e^{a+b x} \cos (3 c+3 d x)-\frac {1}{16} e^{a+b x} \cos (5 c+5 d x)\right ) \, dx\\ &=-\left (\frac {1}{16} \int e^{a+b x} \cos (3 c+3 d x) \, dx\right )-\frac {1}{16} \int e^{a+b x} \cos (5 c+5 d x) \, dx+\frac {1}{8} \int e^{a+b x} \cos (c+d x) \, dx\\ &=\frac {b e^{a+b x} \cos (c+d x)}{8 \left (b^2+d^2\right )}-\frac {b e^{a+b x} \cos (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {b e^{a+b x} \cos (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}+\frac {d e^{a+b x} \sin (c+d x)}{8 \left (b^2+d^2\right )}-\frac {3 d e^{a+b x} \sin (3 c+3 d x)}{16 \left (b^2+9 d^2\right )}-\frac {5 d e^{a+b x} \sin (5 c+5 d x)}{16 \left (b^2+25 d^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.78, size = 110, normalized size = 0.60 \[ \frac {1}{16} e^{a+b x} \left (\frac {2 (b \cos (c+d x)+d \sin (c+d x))}{b^2+d^2}-\frac {b \cos (3 (c+d x))+3 d \sin (3 (c+d x))}{b^2+9 d^2}-\frac {b \cos (5 (c+d x))+5 d \sin (5 (c+d x))}{b^2+25 d^2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.66, size = 200, normalized size = 1.09 \[ \frac {{\left (6 \, b^{2} d^{3} + 30 \, d^{5} - 5 \, {\left (b^{4} d + 10 \, b^{2} d^{3} + 9 \, d^{5}\right )} \cos \left (d x + c\right )^{4} + 3 \, {\left (b^{4} d + 6 \, b^{2} d^{3} + 5 \, d^{5}\right )} \cos \left (d x + c\right )^{2}\right )} e^{\left (b x + a\right )} \sin \left (d x + c\right ) - {\left ({\left (b^{5} + 10 \, b^{3} d^{2} + 9 \, b d^{4}\right )} \cos \left (d x + c\right )^{5} - {\left (b^{5} + 6 \, b^{3} d^{2} + 5 \, b d^{4}\right )} \cos \left (d x + c\right )^{3} - 6 \, {\left (b^{3} d^{2} + 5 \, b d^{4}\right )} \cos \left (d x + c\right )\right )} e^{\left (b x + a\right )}}{b^{6} + 35 \, b^{4} d^{2} + 259 \, b^{2} d^{4} + 225 \, d^{6}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 152, normalized size = 0.83 \[ -\frac {1}{16} \, {\left (\frac {b \cos \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}} + \frac {5 \, d \sin \left (5 \, d x + 5 \, c\right )}{b^{2} + 25 \, d^{2}}\right )} e^{\left (b x + a\right )} - \frac {1}{16} \, {\left (\frac {b \cos \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}} + \frac {3 \, d \sin \left (3 \, d x + 3 \, c\right )}{b^{2} + 9 \, d^{2}}\right )} e^{\left (b x + a\right )} + \frac {1}{8} \, {\left (\frac {b \cos \left (d x + c\right )}{b^{2} + d^{2}} + \frac {d \sin \left (d x + c\right )}{b^{2} + d^{2}}\right )} e^{\left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 166, normalized size = 0.91 \[ \frac {b \,{\mathrm e}^{b x +a} \cos \left (d x +c \right )}{8 b^{2}+8 d^{2}}-\frac {b \,{\mathrm e}^{b x +a} \cos \left (3 d x +3 c \right )}{16 \left (b^{2}+9 d^{2}\right )}-\frac {b \,{\mathrm e}^{b x +a} \cos \left (5 d x +5 c \right )}{16 \left (b^{2}+25 d^{2}\right )}+\frac {d \,{\mathrm e}^{b x +a} \sin \left (d x +c \right )}{8 b^{2}+8 d^{2}}-\frac {3 d \,{\mathrm e}^{b x +a} \sin \left (3 d x +3 c \right )}{16 \left (b^{2}+9 d^{2}\right )}-\frac {5 d \,{\mathrm e}^{b x +a} \sin \left (5 d x +5 c \right )}{16 \left (b^{2}+25 d^{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.39, size = 1144, normalized size = 6.25 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.71, size = 255, normalized size = 1.39 \[ \frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (d\,x\right )-\sin \left (d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \relax (c)-\sin \relax (c)\,1{}\mathrm {i}\right )}{16\,\left (b-d\,1{}\mathrm {i}\right )}-\frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (3\,d\,x\right )+\sin \left (3\,d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \left (3\,c\right )+\sin \left (3\,c\right )\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{32\,\left (-3\,d+b\,1{}\mathrm {i}\right )}-\frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (5\,d\,x\right )+\sin \left (5\,d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \left (5\,c\right )+\sin \left (5\,c\right )\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{32\,\left (-5\,d+b\,1{}\mathrm {i}\right )}+\frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (d\,x\right )+\sin \left (d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \relax (c)+\sin \relax (c)\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{16\,\left (-d+b\,1{}\mathrm {i}\right )}-\frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (3\,d\,x\right )-\sin \left (3\,d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \left (3\,c\right )-\sin \left (3\,c\right )\,1{}\mathrm {i}\right )}{32\,\left (b-d\,3{}\mathrm {i}\right )}-\frac {{\mathrm {e}}^{a+b\,x}\,\left (\cos \left (5\,d\,x\right )-\sin \left (5\,d\,x\right )\,1{}\mathrm {i}\right )\,\left (\cos \left (5\,c\right )-\sin \left (5\,c\right )\,1{}\mathrm {i}\right )}{32\,\left (b-d\,5{}\mathrm {i}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________